package com.tencreat.domain.mall;

import com.baomidou.mybatisplus.annotation.*;
import com.tencreat.common.annotation.Excel;
import com.tencreat.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.List;


/**
 * 资讯管理对象 mall_consult
 *
 * @author tencreat
 * @date 2022-01-10
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_consult")
public class MallConsult extends BaseEntity<MallConsult> {
    private static final long serialVersionUID = 1L;


    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;


    /** 咨询编号 */
    @Excel(name = "咨询编号")
    @ApiModelProperty(value= "咨询编号")
    @TableField("`consult_sn`")
    private String consultSn;


    /** 分类 */
    @Excel(name = "分类")
    @ApiModelProperty(value= "分类")
    @TableField("`classify`")
    private String classify;


    /** 标题 */
    @Excel(name = "标题")
    @ApiModelProperty(value= "标题")
    @TableField("`title`")
    private String title;


    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty(value= "状态")
    @TableField("`state`")
    private Long state;


    /** 访问量 */
    @Excel(name = "访问量")
    @ApiModelProperty(value= "访问量")
    @TableField("`visits`")
    private Integer visits;


    /** 评论次数 */
    @Excel(name = "评论次数")
    @ApiModelProperty(value= "评论次数")
    @TableField("`comments_number`")
    private Integer commentsNumber;


    /** 作者 */
    @Excel(name = "作者")
    @ApiModelProperty(value= "作者")
    @TableField("`author`")
    private String author;

    /** 源链接 */
    @Excel(name = "源链接")
    @ApiModelProperty(value= "源链接")
    @TableField("`original_link`")
    private String originalLink;

    /** 发布源 */
    @Excel(name = "发布源")
    @ApiModelProperty(value= "发布源")
    @TableField("`publishing_source`")
    private String publishingSource;

    /** 图片 */
    @Excel(name = "图片")
    @ApiModelProperty(value= "图片")
    @TableField("`pic_url`")
    private String picUrl;

    @TableField(exist = false)
    @ApiModelProperty(value= "图片集合")
    private List<String> picUrls;

    /** 是否推荐 */
    @Excel(name = "是否推荐")
    @ApiModelProperty(value= "是否推荐")
    @TableField("`recommend`")
    private Integer recommend;


    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty(value= "用户ID")
    @TableField("`user_id`")
    private Long userId;

    /** 顺序 */
    @Excel(name = "顺序")
    @ApiModelProperty(value= "顺序")
    @TableField("`sort_order`")
    private Long sortOrder;


    /** 摘要*/
    @Excel(name = "摘要")
    @ApiModelProperty(value= "摘要")
    @TableField("`summary`")
    private String summary;

    /** 内容*/
    @Excel(name = "内容")
    @ApiModelProperty(value= "内容")
    @TableField("`context`")
    private String context;

    @ApiModelProperty("点赞数量")
    private Integer likesCount;

    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;


    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


}
